package com.jadows.tdog.constants;

/**
 * @author taojiacheng
 */
public interface CacheConstants {

    /**
     * 在线用户注册表
     */
    String ONLINE_USER_REGISTER = "online_user:";

    /**
     * 私聊消息 topic
     */
    String DIRECT_TEXT_MSG_TOPIC = "direct:msg:topic:";

    /**
     * 消息已读 topic
     */
    String DIRECT_TEXT_MSG_READ_TOPIC = "direct:msg:read:topic:";

    /**
     * 群聊消息 topic
     */
    String ROOM_TEXT_MSG_TOPIC = "room:msg:topic:";

    /**
     * 发起通话、接听通话 topic
     */
    String CALL_ACCEPT_TOPIC = "call:accept:topic:";

    /**
     * 媒体协商 topic
     */
    String WEBRTC_SDP_TOPIC = "webrtc:sdp:topic:";

    /**
     * 私聊消息缓存
     */
    String DIRECT_TEXT_MSG_CACHE = "direct:msg:cache:";

    /**
     * redis 锁
     */
    String REDISSON_LOCK_PREFIX = "redisson_lock:%s";


}
